package leetcodecompetition.D356;

import java.util.stream.IntStream;

/**
 * @Author: Siantar
 * @Date: 2023-07-30-10:31
 * @Description: 1.0
 */
public class T6917 {
    public int numberOfEmployeesWhoMetTarget(int[] hours, int target) {
        int res = 0;
        for (int hour : hours) {
            if (hour >= target) {
                res++;
            }
        }
        return res;
    }
    public int numberOfEmployeesWhoMetTarget0(int[] hours, int target) {
        return (int) IntStream.of(hours).filter(v -> v >= target).count();
    }
}
